package WordCount;

import java.util.HashMap;
import java.util.Map;

public class BaseContext {

    private Map<String,Integer> cacheMap = new HashMap<String, Integer>();

    public Map<String, Integer> getCacheMap() {
        return cacheMap;
    }

    public void write(String key,Integer value){
        cacheMap.put(key,value);
    }

    public Integer get(String key){
        return cacheMap.get(key);
    }
}
